68c00dc3cfada1016a2666b64f90d7db0eb61715,src/com/facebook/buck/ocaml/OcamlLink.java,OcamlLink,getBuildSteps,#BuildContext#BuildableContext#,101

Before Change



    ImmutableList.Builder<Step> steps = ImmutableList.<Step>builder()
        .add(new MkdirStep(getProjectFilesystem(), outputRelativePath.getParent()))
        .add(new OcamlLinkStep(
            getProjectFilesystem().getRootPath(),
            cxxCompilerEnvironment,
            cxxCompiler,
            ocamlCompiler.getCommandPrefix(context.getSourcePathResolver()),
            flags,
            stdlib,
            getProjectFilesystem().resolve(outputRelativePath),
            depInput,
            cDepInput,
            inputs.stream()
                .map(context.getSourcePathResolver()::getAbsolutePath)
                .collect(MoreCollectors.toImmutableList()),
            isLibrary,
            isBytecode));
    if (isLibrary && buildNativePlugin) {
        steps.add(new OcamlNativePluginStep(
            getProjectFilesystem().getRootPath(),

After Change



    ImmutableList.Builder<Step> steps = ImmutableList.<Step>builder()
        .add(new MkdirStep(getProjectFilesystem(), outputRelativePath.getParent()))
        .add(OcamlLinkStep.create(
            getProjectFilesystem().getRootPath(),
            cxxCompilerEnvironment,
            cxxCompiler,
            ocamlCompiler.getCommandPrefix(context.getSourcePathResolver()),
            flags,
            stdlib,
            getProjectFilesystem().resolve(outputRelativePath),
            depInput,
            cDepInput,
            inputs.stream()
                .map(context.getSourcePathResolver()::getAbsolutePath)
                .collect(MoreCollectors.toImmutableList()),
            isLibrary,
            isBytecode));
    if (isLibrary && buildNativePlugin) {
        steps.add(new OcamlNativePluginStep(
            getProjectFilesystem().getRootPath(),